package com.dao;

import com.model.Settle;
import com.vo.SettleVO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SettleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Settle record);

    Settle selectByPrimaryKey(Long id);


    int updateByPrimaryKey(Settle record);

    Settle selectByAgentAndWorkDate(@Param("agentId") Long id,@Param("workDate") String lastMonth);

    /**
     *
     * @param condition
     * @return
     */
    List<Settle> selectByCondition(Settle condition);

    List<Settle> selectByConditionAlreadySettled(Settle condition);
}